package cn.edu.scau.cmi.chenxiaoqin.abstractFactory;

public abstract class Brand {
	public abstract Beef getBeef();
	public abstract Chicken getChicken();
	public abstract Pork getPork();
	public static Brand getBrand(String brandName) {
		Brand brand = null;
		if(brandName.equals("温氏")) {
			brand=new Wens();
		}
		else if(brandName.equals("天邦")) {
			brand=new Tianbang();
		}
		else {
			brand=new Aonong();
		}
		return brand;
	}
}
